package com.redmoon.oa.person;

import com.cloudwebsoft.framework.base.QObjectDb;

import java.util.Vector;

/**
 * <p>Title: </p>
 *
 * <p>Description: </p>
 *
 * <p>Copyright: Copyright (c) 2006</p>
 *
 * <p>Company: </p>
 *
 * @author not attributable
 * @version 1.0
 */
public class FavoriteDb extends QObjectDb {
    public static final int KIND_MENU = 0;
    public static final int KIND_LINK = 1;
    public static final int KIND_USER = 2;

    public FavoriteDb() {
        super();
    }

    public Vector listByKind(String userName, int kind) {
        String sql = "select id from user_favorite where user_name=? and kind=? order by orders";
        return list(sql, new Object[]{userName, kind});
    }
}
